/******************************************************************************
 Copyright (c) 2024 Qualcomm Technologies International, Ltd.
 All Rights Reserved.
 Qualcomm Technologies International, Ltd. Confidential and Proprietary.

 REVISION:      $Revision: #14 $
******************************************************************************/

#ifndef GATT_XPAN_SERVER_DEBUG_H
#define GATT_XPAN_SERVER_DEBUG_H

#include "csr_synergy.h"

#ifndef EXCLUDE_GATT_XPAN_SERVER_MODULE

#include "lea_logging.h"

#define LEA_XPAN_LOG_ENABLE 0x04000000

#if (defined(LEA_XPAN_LOG_ENABLE) && defined(LEA_LOG_MASK) && (LEA_XPAN_LOG_ENABLE & LEA_LOG_MASK))

#define GATT_XPAN_SERVER_INFO(...) CSR_LOG_TEXT_INFO((CsrBtXpanLto, 0, __VA_ARGS__))
#define GATT_XPAN_SERVER_WARNING(...)  CSR_LOG_TEXT_WARNING((CsrBtXpanLto, 0, __VA_ARGS__))
#define GATT_XPAN_SERVER_ERROR(...)  CSR_LOG_TEXT_ERROR((CsrBtXpanLto, 0, __VA_ARGS__))
#define GATT_XPAN_SERVER_PANIC(...)  {CSR_LOG_TEXT_ERROR((CsrBtXpanLto, 0, __VA_ARGS__)); CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#else

#define GATT_XPAN_SERVER_INFO(...)
#define GATT_XPAN_SERVER_WARNING(...)
#define GATT_XPAN_SERVER_ERROR(...)
#define GATT_XPAN_SERVER_PANIC(...)  {CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#endif

#endif /* EXCLUDE_GATT_XPAN_SERVER_MODULE */

#endif /* GATT_XPAN_SERVER_DEBUG_H */
